package com.haichang.demomybatis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import com.haichang.demomybatis.entity.GSales;
import com.haichang.demomybatis.mapper.GsalesMapper;
import org.springframework.web.bind.annotation.GetMapping;


@RestController
public class GsalesController {
    
    @Autowired
    private GsalesMapper gsalesMapper;

    @GetMapping("/gsales")
    public List<GSales> query() {
        List<GSales> gsalesList = gsalesMapper.selectList(null);
        return gsalesList;
    }
}
